/*
* 文件：FPSSetting.cs
* 作者：王阳
* 时间：2019-5-20
* 描述：设置帧率
*/

//#define ENABLED
#if ENABLED

using UnityEngine;

namespace UnityX
{
    internal class FPSSetting
    {
        [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterSceneLoad)]
        private static void AfterSceneLoad()
        {
            QualitySettings.vSyncCount = 0;
            Application.targetFrameRate = 120;
        }
    }
}
#endif